/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package backingBean;

import entities.Members;
import java.io.Serializable;
import java.util.List;
import javaServices.MemberManager;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author michael
 */
@ManagedBean(name = "index")
@SessionScoped
public class IndexMB implements Serializable{
    
    private List<Members> ListOfMembers;
        
    public IndexMB(){
        ListOfMembers = MemberManager.getAllUsers();
    }

    public List<Members> getListOfMembers() {
        return ListOfMembers;
    }

    public void setListOfMembers(List<Members> ListOfMembers) {
        this.ListOfMembers = ListOfMembers;
    }
    
    
}
